import req from "./req.js"

module.exports = {
	//手机号登录
	loginPhone(user) {
		return req.req(`/login/cellphone?phone=${user.phone}&password=${user.pwd}`)
	},
	//发送验证码
	sendCode(phone){
		return req.req(`/captcha/sent?phone=${phone}`)
	},
	//验证验证码
	verifyCode(login){
		return req.req(`/captcha/verify?phone=${login.phone}&captcha=${login.code}`)
	},
	//验证码登录
	loginCode(user) {
		return req.req(`/login/cellphone?phone=${user.phone}&captcha=${user.code}`)
	},
	//首页轮播图
	indexBanner(type){
		return req.req(`/banner?type=${type}`)
	},
	//
	getMusic(){
		return req.req(`/recommend/songs`)
	}
}
